//
//  ComposeView.m
//  Store041
//
//  Created by 041 on 14-7-7.
//  Copyright (c) 2014年 041. All rights reserved.
//

#import "ComposeView.h"


@implementation ComposeView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _btu=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.width, 100)];
        _btu.layer.borderWidth = 0.35f;
        _btu.layer.borderColor = qianhuicolor.CGColor;
        [self addSubview:_btu];
        self.imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.width, 100)];
//
        self.imageview. contentMode=UIViewContentModeScaleAspectFill;
        [self addSubview:self.imageview];
        
        UIView *label_backgound = [[UIView alloc]initWithFrame:CGRectMake(0, self.imageview.bottom, self.width, self.height-self.imageview.height)];
        [label_backgound setBackgroundColor:[UIColor whiteColor]];
        [self addSubview:label_backgound];
        
        self.label_name = [[UILabel alloc]initWithFrame:CGRectMake(0, 5, self.width-10, label_backgound.height/2)];
        self.label_name.textColor = [UIColor blackColor];
        
        self.label_name.font = [UIFont systemFontOfSize:14];
        [label_backgound addSubview:self.label_name];
        
        self.label_price = [[UILabel alloc]initWithFrame:CGRectMake(0, label_backgound.height/2+3, self.width, label_backgound.height/2)];
        self.label_price.textColor = hongsecolor;
        self.label_price.font = [UIFont systemFontOfSize:13];
        [label_backgound addSubview:self.label_price];
    }
    return self;
}




@end
